package com.edu.controller.dao.entity.bean.controller;

import com.edu.controller.dao.entity.bean.User;
import com.edu.controller.dao.entity.bean.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class IndexController {
    @Autowired
    private UserMapper userMapper;

    @RequestMapping("/index")
    public  Integer index(){
        int t =userMapper.insert("eeee",22);
        return t;
    }
    @RequestMapping("/getAll")
    public List<User> getAll(){
        return  userMapper.getAll();
    }


}
